"; } else { // echo "

"; } // echo "
INVR CORP ".$invr_corp." INVR NAME ".$invr_name." INVR bzv1 ".$invr_bzv1." INVR bzv2 ".$invr_bzv2."INVR LGRM ".$invr_lgrm." INVR CHBT ".$invr_chbt." INVR FILE ".$invr_file." INVR DOMN ".$invr_domn; echo "
SLEUTELWOORD ".$invr_bzv1; // echo "
De taal is ".$invr_taal; $Uw_e_mailadres=text_isrt($invr_taal."@Uw e-mailadres"); $chatbotnaam=text_isrt($invr_taal."@Chatbotnaam"); $paswoord=text_isrt($invr_taal."@paswoord"); $Nogmaals_paswoord=text_isrt($invr_taal."@Nogmaals paswoord"); $Nogmaal_e_mailadres=text_isrt($invr_taal."@Nogmaals e-mail-adres"); $Vertel_mij_iets_over_Chatbots=text_isrt($invr_taal."@Vertel mij iets over Chatbots"); $userip = $_SERVER["REMOTE_ADDR"]; $userip=$_SERVER['REMOTE_ADDR']; if ($userip != "81.207.16.26") { // echo "This action cannot be completed for this IP Address. Please contact us"; // exit; } $requester= $_SERVER["HTTP_REFERER"]; // echo "
REFERRER ".$requester; $invr_ipad=$userip; $date = gmdate("Y-m-d"); setlocale(LC_ALL, 'nl_NL'); $localtime = localtime(); $tijd=$localtime[2].":".$localtime[1].":".$localtime[0]; $date = gmdate("Y-m-d")." ".$tijd; // echo $date; $smta_rslt=""; $sw=0; ////////////////////// BUILD IPAD TABLE AND COUNTERS //////////// $sql0 = "SELECT * FROM base where `rchs`= '$rchs_corp' order by `rchs` asc"; mysql_query("SET CHARACTER SET utf8"); mysql_query("SET NAMES utf8"); $tablresult = mysql_query($sql0, $link); $tabl_num = mysql_num_rows($tablresult); $corp_num=$tabl_num; // echo "
Aantallen ".$sql0." ".$tabl_num." SQL "; while ($row = mysql_fetch_assoc($tablresult)) { $tabl_ipad="LINGVISTICA"; $id=$row['id']; $ipad=$row['ipad']; $ipad_array[$ipad]=$ipad_array[$ipad]+1; $domn=$row['domn']; $domn_array[$domn]=$domn_array[$domn]+1; $lnks=$row['lnks']; $lnks_array[$lnks]=$lnks_array[$lnks]+1; $rchs=$row['rchs']; $rchs_array[$rchs]=$rchs_array[$rchs]+1; $taal=$row['taal']; if ($invr_taal == null) { $invr_taal=$taal; } $levl=$row['levl']; $datm=$row['datm']; $taal_array[$taal]=$taal_array[$taal]+1; $tlnks=$tlnks+$lnks; $trchs=$trchs+$rchs; $tlevl=$tlevl+$levl; $file_find=""; } // echo "
"; // echo "
Het gespreksonderwerp ".$invr_domn." en levert het volgende resultaat op "; // echo " ".$text_file." ".filesize($text_file).""; foreach($lnks_array as $lnks_key => $lnks_val) { // echo $rchs_corp." de tekst is gevonden in het kennisdomein ".$lnks_key; } echo "
"; foreach($domn_array as $domn_key => $domn_val) { echo " "; } $smts_rslt=tlkd_smts($invr_domn); $domn_dtls=explode(" ",$invr_domn); // print_r($domn_dtls); foreach($domn_dtls as $domn_key => $domn_val) { if (strlen($domn_val) > 4) { echo " ".$domn_val; } } ///////////////////////////////////////////////////////////////////////////////////////////// $text_file=$invr_file; echo "
".$invr_file." ".filesize($text_file)."
"; $open_corp=$text_file; $f = fopen($text_file, "r"); while ($line = fgets($f, 1000)) { $title_lngt=(strlen($line)-10); if (substr($line,0,10) == "THE_TITLE:") { $title=substr($line,10,$title_lngt); // echo "
TITLE ".$title; $titl_pntr=ftell($f); if ($titl_sw ==0) { $titl_sw=1; $domn_titl=$title; if ($userip != "81.207.16.26") { // echo "This action cannot be completed for this IP Address. Please contact us"; // break; } break; } } $title_lngt=(strlen($line)-8); if (substr($line,0,8) == "THE_URL:") { // echo "
LINE ".$line; $url=substr($line,8,$title_lngt); $sline=str_replace("http://www.","www",$line); $sline=str_replace("/","slash",$sline); $sline=str_replace(".","dot",$sline); $sline=str_replace(" ","+",$sline); // echo "
SLINE ".$sline; echo "
".$url.""; $titl_pntr=ftell($f); $line=$sline; if ($titl_sw ==0) { $titl_sw=1; $domn_titl=$title; if ($userip != "81.207.16.26") { // echo "This action cannot be completed for this IP Address. Please contact us"; // break; } } } /////////////// $pos = strpos($line, $invr_bzv1); if ($pos === false) { // echo "
The string '$say_key' was not found in the string '$rslt_word'"; } else { // echo "
The string ".$invr_bzv1." was found in the string ".$line; // echo " and exists at position $pos"; $rslt_text=$rslt_dtls[1]; $rslt_shrt=substr($rslt_word,0,256); $text_mtch[$rslt_shrt]=$text_mtch[$rslt_shrt]+1; // $shrt_line=substr($line,0,256); $sshrt_line=str_replace(" ","+",$line); $sinvr_bzv1=str_replace(" ","+",$invr_bzv1); // echo "
Actually length is".strlen($rslt_word); $linvr_bzv1="".$invr_bzv1.""; echo "".$linvr_bzv1."".substr($line,0,256).""; } trim($line); $unew_mb=urlencode($line); /////////////// // $string=$invr_bzv1; // echo "
UNEW MB ".$unew_mb; $string=$unew_mb; $string=str_replace("+"," ",$unew_mb); $string=str_replace(".","xsntx",$unew_mb); $string=str_replace(";","xsubx",$unew_mb); $string=str_replace("?","xqstx",$unew_mb); $string=str_replace("%00","",$string); $string=str_replace("%0A","xtabx",$string); $string=str_replace("%2C","xpstx",$string); // $string=str_replace("%2E","xprdx",$string); $string=str_replace("%0D","xcrtx",$string); $string=str_replace("%C2%B7","",$string); $string=urldecode($string); $line_dtls=explode(".",$string); // $string=urlencode($linel); // $string=str_replace("+","",$unew_mb); // $string=str_replace("+++","",$unew_mb); $unew_mb=str_replace("_","",$unew_mb); // echo "
STRING BEFORE ".$string; $string=str_replace("%3A","slash",$unew_mb); $string=str_replace("%3E"," xclsx ",$unew_mb); $string=str_replace("%3F","xqstx",$string); $string=str_replace(";"," xsubx ",$string); $string=str_replace("%0D%0A"," ",$string); $string=str_replace("%C2%BB"," xattx ",$string); $string=str_replace("%00","",$string); $string=str_replace("%0A"," xtabx ",$string); $string=str_replace("%5A","",$string); $string=str_replace("%5B","",$string); $string=str_replace("%5C","",$string); $string=str_replace("%5D"," xbrkx",$string); $string=str_replace("%7C","",$string); $string=str_replace("%2F"," ",$string); $string=str_replace("%2C","",$string); $string=str_replace("%2B","xonex",$string); $string=str_replace("%2A","xtwox",$string); $string=str_replace("%29"," xclsx ",$string); $string=str_replace("%28"," xclsx ",$string); $string=str_replace("%27","",$string); $string=str_replace(" %26 "," en ",$string); $string=str_replace("%23"," xsumx ",$string); $string=str_replace("%22"," xndrx ",$string); $string=str_replace("%21"," xurpx ",$string); $string=str_replace("%0D"," xcrtx ",$string); $string=str_replace("%C2%A9","",$string); $string=str_replace("%C2%B7","",$string); $string=str_replace("%E2%80%99","",$string); $string=str_replace("%E2%80%98","",$string); $string=str_replace("%E2%80%9D","",$string); $string=str_replace("++"," ",$string); // echo "
AFTER STRING ".$string; // $string=urldecode($string); $string=trim($string); // echo "
AFTER STRING ".$string; $full_docm=$full_docm." ".$string; ////////////////////// $line_text=$string; $line_lngt=strlen($line_text)-11; $line_flct=$line_lnes[2]; $line_tlct=$line_lnes[3]; $line_ulne=$line_lnes[4]; $line_titl=$line_lnes[5]; // echo "
LAST POS ".$last_pos." FRST POS ".$frst_pos." URL ENCODED ".urlencode($line_text); // $line_text=str_replace("+"," ",urlencode($line_text)); $sline_text=str_replace(" ","+",$line_text); $line_key=str_replace("xcrtxxtabx","",$line_key); $sline_titl=str_replace(" ","+",$line_titl); // $sline_text=str_replace("xcrtxxtabx","",$line_text); $wrds_array=explode(" ",$line_text); // echo "
WRDS ARRAY ".count($wrds_array); $wrds_array=explode(" ",$line_text); $cntr_xhdr=substr_count($line_text, 'x'); // echo "
".$cntr_xhdr." ".$sline_text; // echo "
WRDS ARRAY ".count($wrds_array); //////////////// $dline=str_replace(". ","xsntx",$line); // $dline=str_replace(".","xdotx",$dline); $dline=str_replace("THE_TITLE",". THE_TITLE",$dline); // $full_docm=$full_docm." ".$line; // echo "
FULL DOCM ".strlen($full_docm); $lline="".substr($line,01,128).""; // echo $lline; } $stitl=str_replace(" ","+",$title); $stitl=trim($stitl); // echo"
CONTEXT ".$stitl; $full_lnes=explode(".",$full_docm); $fl=0; echo "
"; echo ""; foreach($full_lnes as $full_key => $full_val) { $full_val=str_replace("THE_TITLE:","",$full_val); /////////////////// // echo"
BEFORE FULL VAL ".$full_val; $string=str_replace("%E9","e",$full_val); $string=str_replace("%EB","e",$string); $string=str_replace("%26","en",$string); $string=str_replace("%C2%A9","",$string); $string=str_replace("%C2%B7","",$string); $string=str_replace("%E2%80%99","",$string); $string=str_replace("%E2%80%98","",$string); $string=str_replace("%E2%80%9D","",$string); ////////////////// $full_val=urldecode($string); $full_val=trim($full_val); // echo"
AFTER FULL VAL ".$full_val; $sfull_val=str_replace(" ","+",$full_val); $sfull_val=str_replace("++","+",$sfull_val); if(strlen($full_val) >0 and strlen($full_val) < 144 and strlen($full_val) >12 ) { $cmds_ipad=$userip; $cmds_bzv2=$text_file."[splt[".$invr_taal."[".$invr_corp."[".$full_val."[1"; // echo "
SPLT INVR BZV2 ".$cmds_bzv2."
"; // include ("chbt-cmds-code-2.php"); $lrule=""; $ltitle=""; $ltchr=""; // echo ""; if ($fl == 0) { $full_lnks=$title; $full_rchs=$full_val; } $cmds_ipad=$userip; $cmds_bzv2=$full_val."[splt[".$invr_taal."[".$title."@".$rchs_corp."[".$full_rchs."[".$fl; // echo "
SPLT INVR BZV2 ".$cmds_bzv2."
"; $fl=$fl+1; $full_rchs=$full_val; include ("chbt-cmds-code-2.php"); // echo "
".$title.">>".$full_val; } } ?>
Vraag
Geef een antwoord
".$title."Stel de vraag
Antwoord
".$lrule."".strlen($full_val)."".$ltitle."".$ltchr."".substr($full_val,0,128); // echo "
".$ltchr."".$full_val."".$ltitle."